package com.xinqi.modules.course.chapter.dto.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.course.course.factory.RemoteCourseFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "courseChapterClient", value = ServiceNameConstants.XQ_COURSE, fallbackFactory = RemoteCourseFallbackFactory.class)
public interface CourseChapterClient {

    /**
     * 获取章节名称
     * @return
     */
    @GetMapping("/inner/course/chapter/selectName")
    R<String> selectName(@RequestParam(value = "chapterId") Long chapterId);


}
